package cn.z2huo.core.status.second;

import cn.z2huo.core.status.StatusCode;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * <p>二级宏观错误码，用户端错误
 */
@Getter
@RequiredArgsConstructor
public enum ClientStatusCode implements SecondStatusCode {

    USER_REGISTRATION_FAILED("A0100", "用户注册失败"),

    USER_LOGIN_EXCEPTION("A0200", "用户登录失败"),

    ACCESS_PERMISSION_EXCEPTION("A0300", "访问权限错误"),

    REQUEST_PARAMETER_EXCEPTION("A0400", "请求参数错误"),

    REQUEST_SERVICE_EXCEPTION("A0500", "请求服务错误"),

    USER_RESOURCE_EXCEPTION("A0600", "用户资源异常"),

    ;

    private final String code;

    private final String message;

    private final StatusCode firstStatusCode = StatusCode.CLIENT_ERROR;

}
